/**
 * @Author DengJia
 * @Date 2021/8/14 17:13
 * @Description
 */

public class StringArrayTest {

    public StringArrayTest() {
    }

    StringArrayTest(String param) {
        System.out.println(param);
    }

    public static void main(String[] args) {
//        StringArrayTest[] arrays = {new StringArrayTest("你好"), new StringArrayTest("世界")};
        String[] strings = {"111", "222", "333"};
        StringArrayTest test = new StringArrayTest();
        test.f(strings);
        // 将0个参数传递给可变参数列表是可行的
        test.f();
    }

    void f(String... args) {
        for (String arg : args) {
            System.out.println(arg);
        }
    }

    void f2(boolean... booleans) {
    }
}
